package com.xiaobing.auth.feign;


import com.xiaobing.common.core.ServiceNameConstants;
import com.xiaobing.common.povo.LoginUser;
import com.xiaobing.common.res.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = ServiceNameConstants.USER_SERVICE)
public interface SysUserInfoCenterFeign {

    @GetMapping("/user/info/{userName}")
    Result<LoginUser> findSysUserInfoByUserName(@PathVariable("userName") String userName);
}

